package zcj.stu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import zcj.stu.scheduling.DaKaTiming;

import javax.annotation.Resource;

@SpringBootApplication
@EnableScheduling
public class DaKaApp {
    @Resource
    private  DaKaTiming daKaTiming;
    public static void main(String[] args) {
        SpringApplication.run(DaKaApp.class,args);
    }
    @Bean
    public String test(DaKaTiming daKaTiming){
        daKaTiming.Daka();
        return "";
    }
}
